package com.ding.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.caucho.HessianProxyFactoryBean;

import com.ding.service.Service;

@Configuration
public class HessianConfig {
	
	@Bean
	public HessianProxyFactoryBean hessianProxyFactoryBean() {
		HessianProxyFactoryBean factoryBean = new HessianProxyFactoryBean();
		factoryBean.setServiceUrl("http://localhost:8080/hessian");
		factoryBean.setServiceInterface(Service.class);
		return factoryBean;
	}
	
}
